﻿using System;
using System.Xml.Serialization;
using Ultima.Xna.Configuration;

namespace Ultima.Xna
{
    [Serializable]
    public class ClientConfig : IConfigService
    {
        bool _debugConsole;
        string _version;
        string _hostAddress;
        int _port;

        [XmlElement]
        public bool DebugConsole
        {
            get { return _debugConsole; }
            set { _debugConsole = value; }
        }

        [XmlElement]
        public string Version
        {
            get { return _version; }
            set { _version = value; }
        }

        [XmlElement]
        public string HostAddress
        {
            get { return _hostAddress; }
            set { _hostAddress = value; }
        }

        [XmlElement]
        public int Port
        {
            get { return _port; }
            set { _port = value; }
        }
    }

    [Serializable]
    public class ScriptsConfig
    {
        string _rootDirectory;
        string _references;
        bool _debug;
        bool _vbDotNet;
        bool _enabled;

        [XmlElement]
        public bool Enabled
        {
            get { return _enabled; }
            set { _enabled = value; }
        }

        [XmlElement]
        public bool VbDotNet
        {
            get { return _vbDotNet; }
            set { _vbDotNet = value; }
        }

        [XmlElement]
        public string RootDirectory
        {
            get { return _rootDirectory; }
            set { _rootDirectory = value; }
        }

        [XmlElement]
        public string References
        {
            get { return _references; }
            set { _references = value; }
        }

        [XmlElement]
        public bool Debug
        {
            get { return _debug; }
            set { _debug = value; }
        }
    }
}
